package com.chenjiajin.service;

import com.chenjiajin.aop.annotation.MyLog;
import org.springframework.stereotype.Service;

@Service
public class TestServcie {

    @MyLog(title = "注解的标题", isSaveRequestData = false)
    public void save(String parm1, int parm2) {
        System.out.println("执行目标对象的方法" + parm1 + parm2);
    }

    private String name = "123";

    @MyLog(title = "注解的标题update", isSaveRequestData = false)
    public void update() {
        name = "456";
        System.out.println("没有注解的方法，不会被拦截" + name);
    }
}

